package com.icss.gateway.handler.service;


import com.common.core.domain.CodeMessage;
import com.common.core.exception.CaptchaException;

import java.io.IOException;

/**
 * 验证码处理
 * 
 * @author ruoyi
 */
public interface ValidateCodeService
{
    /**
     * 生成验证码
     * @return
     */
    public CodeMessage createCapcha() throws IOException, CaptchaException;

    /**
     * 校验验证码
     */
    public void checkCapcha(String key, String value) throws CaptchaException;
}
